import React,{Component} from 'react';
import Comment from './comment';
class CommentList extends Component{
  onDeleteComment(item){
    this.props.onDeleteCometn(item);
  }
  render(){
    return (
      <div>
          {
            this.props.commentLists.map((comment,key)=>{
              return (
                  <Comment key={key} commentContent={comment} onDeleteComment={this.onDeleteComment.bind(this)}/>
              )
            })
          }
      </div>
    )
  }
}
export default CommentList
